<?php

namespace App\Http\Controllers\Admin;

use App\Model\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class AdminController extends Controller
{
    //
    public function list(Request $request)
    {
        return view('admin.admin-list');
    }

    public function data(){
        return datatables(Admin::query())->toJson();
    }
}
